package com.alennus.blog.rabbitMq.spring_rabbit.simple;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * Created by pactera on 2018/9/25.
 */
@RestController
@RequestMapping("/rabbit")
public class RabbitController {

    @Autowired
    public Send send;


    @RequestMapping("/hello")
    public void hello() {
        send.send();
    }

}
